This calculator estimates π to the requested precision. It uses one of the following formulas:
James Gregory and Gottfried Leibniz around 1675. This formula is very slow to converge.
John Wallis's formula from 1655. This formula is a little slower than Leibniz's.
One of Euler's many formulas. This formula is a little better than Leibniz's.
Finally, a killer formula from Srinivasa Ramanujan around 1910.
To use the calculator simply enter the depth of the calculation (the number of terms utilized). The display shows the result and the difference from as defined by javascript's Math.PI. Below is shown calculated to 50 places.
3.141 592 653 589 793 238 462 643 383 279 502 884 197 169 399 375 11
I can only show to 21 numerals of precision as that is the limit of the Number.precision() function. The Ramanujan function shows 0% error at a depth of 2, while only the first 17 decimals are accurate. This shows the limits of 64-bit math.